package com.neu.entity;

public class Student {
private int id;
private String name;
private String pass;
private int role;


public int getId() {
	return id;
}
public void setId(int id) {
	this.id = id;
}
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public String getPass() {
	return pass;
}
public void setPass(String pass) {
	this.pass = pass;
}
public int getRole() {
	return role;
}
public void setRole(int role) {
	this.role = role;
}


@Override
public String toString() {
	return "用户权限信息: [id=" + id + ", name=" + name + ", pass=" + pass + ", role=" + role + "]";
}


public Student(int id, String name, String pass, int role) {
	super();
	this.id = id;
	this.name = name;
	this.pass = pass;
	this.role = role;
}


public Student() {
	super();
}


@Override
public int hashCode() {
	final int prime = 31;
	int result = 1;
	result = prime * result + id;
	result = prime * result + ((name == null) ? 0 : name.hashCode());
	result = prime * result + ((pass == null) ? 0 : pass.hashCode());
	result = prime * result + role;
	return result;
}
@Override
public boolean equals(Object obj) {
	if (this == obj)
		return true;
	if (obj == null)
		return false;
	if (getClass() != obj.getClass())
		return false;
	Student other = (Student) obj;
	if (id != other.id)
		return false;
	if (name == null) {
		if (other.name != null)
			return false;
	} else if (!name.equals(other.name))
		return false;
	if (pass == null) {
		if (other.pass != null)
			return false;
	} else if (!pass.equals(other.pass))
		return false;
	if (role != other.role)
		return false;
	return true;
}
}